package models

import (
	"github.com/goravel/framework/database/orm"
	"goravel/app/models/common"
)

type Process struct {
	orm.Model
	Pid       uint         `gorm:"column:pid" json:"pid" form:"pid"`
	TicketID  uint         `gorm:"column:ticket_id" json:"ticket_id" form:"ticket_id"`
	RoleName  string       `gorm:"column:role_name" json:"role_name" form:"role_name"`
	RoleID    uint         `gorm:"column:role_id" json:"role_id" form:"role_id"`
	State     string       `gorm:"column:state" json:"state" form:"state"`
	Operation int          `gorm:"column:operation" json:"operation" form:"operation"`
	Comment   string       `gorm:"column:comment" json:"comment" form:"comment"`
	Images    common.Album `gorm:"column:images" json:"images" form:"images"`
	Children  []Process    `gorm:"foreignKey:pid;references:ID;" form:"children" json:"children"`
	orm.SoftDeletes
}
